package com.lin.pay;

import com.lin.common.error.CustomRuntimeException;

import java.io.UnsupportedEncodingException;
import java.math.BigDecimal;
import java.util.Map;

public interface PayService {
    /**
     * @param channel 渠道
     * @param openid 用户标识
     * @param trxAmt  支付金额
     * @param orderNo 商户订单号（业务订单号）
     * @param payOrderNo 支付订单号
     * @return
     */
    Map unifiedOrder(String channel,String openid, BigDecimal trxAmt,String currency,  Long orderNo, Long payOrderNo) throws CustomRuntimeException, UnsupportedEncodingException;

    String channelNotify(Map<String, String> map) throws Exception;

    Map<String, String> refund(String channel, Map<String, String> reqData) throws Exception;


}
